<?php include_once('../layouts/header.php') ?>
<div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'west',title:'组织机构',split:true,border:true,width:'35%'">
        <!-- treegrid表格 -->
        <table id="orgnizationTg" class="easyui-treegrid"
         data-options="
            type:'treegrid',
            idField:'id',
            treeField:'text',
            pagination:false,
            checkOnSelect:true,
            url:'http://demo.misboot.com/system/codeItem/getListByCodeSetIdAndLevelId?codeSetId=0&levelId=0',
            expandUrl:'http://demo.misboot.com/system/codeItem/getListByPid?pid={id}',
            callback:[
                {
                    method:'reloadGrid',
                    params:'ppid:id',
                    chkSelects:1,
                    grid:{
                        type:'datagrid',
                        id:'#products',
                        updateRow:true,
                    }
                },
            ],
         ">

            <thead>
            <tr>
                <th data-options="field:'uuid',title:'UUID',checkbox:true"></th>
                <th data-options="field:'text',title:'名称'"></th>
                <th data-options="field:'codeSetId',title:'体系代码'"></th>
                <th data-options="field:'pid',title:'父级编号'"></th>
            </tr>
            </thead>
        </table>
    </div>
    <div data-options="region:'center',split:true,border:false">
        <div id="panelBox" class="easyui-panel" title="Panel(根据左侧选项刷新一个新的URL内容)"
                data-options="fit:true,href:'/html/grid/tablegrid.php'">
        </div>
    </div>
</div>

<?php include_once('../layouts/footer.php') ?>